using System;
using System.Collections.Generic;
using System.Text;
using Cobalt75.GreyMatter;
namespace Cobalt75.GreyMatter.TesterTypes
{
    
    [
    GMTable(
        TableName = "properties",
        TableID = "PRP",
        ApproxSize=50000,
        Priority = 20
        )
    ]
    public class Property : GMTable
    {
        public Property(GMCommunicator com)
            : base(com)
        {
            pPropertyType = new GMRelation<PropertyType>(this);
        }

        [GMColumn(Key=true,
            LengthType=GMColumnLength.Defined,
            ColumnLength=255)]
        private string pName;
        public string Name
        {
            get
            {
                return (pName);
            }
            set
            {
                pName = value;
                Changed();
            }
        }
        [GMColumn]
        private GMRelation<PropertyType> pPropertyType;
        public PropertyType PropertyType
        {
            get
            {
                return (pPropertyType.Value);
            }
            set
            {

                pPropertyType.Value = value;
            }
        }
    }
}
